package com.iss.yunpan.service.impl;

import com.iss.yunpan.dao.PasswordChangeDao;
import com.iss.yunpan.entity.Users;
import com.iss.yunpan.service.PasswordChangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class PasswordChangeServicelmpl implements PasswordChangeService {
    @Autowired
    private PasswordChangeDao dao;
    @Override
    public Users getUsersByUsernameAndPassword(String username, String password) {
        return dao.getUsersByUsernameAndPassword(username,password);
    }

    @Override
    public Integer changePassword(String username, String password) {
        return dao.updatePasswordByUid(username, password);
    }
}
